/**
 * caicongyang.com Inc.
 * Copyright (c) 2004-2017 All Rights Reserved.
 */
package com.caicongyang.design.composite;

/**
 * @author caicongyang1
 * @version id: Composite, v 0.1 17/5/18 下午7:42 caicongyang1 Exp $$
 */
public abstract class Component {
    private String name;

    public Component(String name) {
        this.name = name;
    }

    public abstract void add(Component component);

    public abstract void remove(Component component);

    public abstract void dispay(int detph);

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
